package com.neusoft.boss.common.result;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class R {

    private Integer code;//状态码
    private String msg;//相应信息
    private Object info;//携带数据


    public static R Succ(Object data) {
        R r = new R();
        r.setCode(1000);
        r.setMsg("登录成功");
        r.setInfo(data);
        return r;
    }
}
